package blog.dao.back;

import blog.entity.Consumer;
import blog.vo.back.ByConsumerNameGetConsumerInfoVO;
import blog.vo.back.ByConsumerRootAndConsumerStatusGetConsumerInfoVO;
import blog.vo.back.ByConsumerRootGetConsumerInfoVO;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 　　* @description: TODO
 * 　　* @param
 * 　　* @return
 * 　　* @throws
 * 　　* @author Administrator
 * 　　* @date $ $
 *
 */
public interface ConsumerBackMapper {
    Consumer emailLogin(Consumer consumer);
    Consumer phoneNumberLogin(Consumer consumer);
    Consumer byConsumerUuidGetConsumerInfo(String consumerUuid);

    List<Consumer> getAllConsumer(@Param("pageNum")int pageNum,@Param("pageSize") int pageSize);
    List<Consumer> byConsumerRootGetConsumerInfo(ByConsumerRootGetConsumerInfoVO byConsumerRootGetConsumerInfoVO);
    List<Consumer> byConsumerRootAndConsumerStatusGetConsumerInfo(ByConsumerRootAndConsumerStatusGetConsumerInfoVO byConsumerRootAndConsumerStatusGetConsumerInfo);
    List<Consumer> byConsumerNameGetConsumerInfo(ByConsumerNameGetConsumerInfoVO byConsumerNameGetConsumerInfoVO);

    int updateConsumerInfo(Consumer consumer);
    int updateConsumerHeadPortrait(@Param("consumerUuid") String consumerUuid,@Param("consumerHeadPortrait") String consumerHeadPortrait);
    int addRootConsumer(Consumer consumer);
}
